package com.itc.bi.utils;

/**
 * @BelongsProject: itc-airport-cloud
 * @BelongsPackage: com.itc.bi.utils
 * @Author: hecaiy
 * @CreateTime: 2024-07-17  19:52
 * @Description: TODO
 * @Version: 1.0
 */
public class ColumnTypeUtil {

    /**
     * 获取列类型
     * @param type
     * @return
     */
    public static String getColumnType(String type) {
        if(type.contains("int") || type.contains("long") || type.contains("double") || type.contains("float") || type.contains("decimal")){
            return "number";
        }
        if(type.contains("date") || type.contains("time") || type.contains("timestamp")){
            return "date";
        }
        return type;
    }
}
